@import 'src/style/variable';

.headingBlock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 10px;

  @media (min-width: $small) {
    margin-top: 20px;
  }
  @media (min-width: $xsmall) {
    flex-direction: row;
    justify-content: space-between;
    justify-items: flex-end;
  }

  .heading {
    font-size: 28px;
    font-weight: bold;
    @media (min-width: $small) {
      font-size: 32px;
    }
  }

  .recordButton {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 20px;

    @media (min-width: $xsmall) {
      margin-top: 0px;
    }
  }
}

.content {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;

  .coinSelectBlock {
    display: flex;
    flex-direction: column;
    gap: 20px;

    @media (min-width: $xsmall) {
      flex-direction: row;
      gap: 30px;
    }

    .coinSelect {
      flex-grow: 1;
    }

    .networkSelect {
      flex-grow: 1;
    }
  }

  .addressBlock {
    position: relative;

    @media (min-width: $xsmall) {
      display: flex;
      flex-direction: row;
    }

    .addressInput {
      flex-grow: 1;
    }

    .saveAddress {
      position: absolute;
      top: 0;
      right: 0;

      @media (min-width: $xsmall) {
        position: static;
        width: 200px;
      }
    }
  }

  .amountBlock {
    position: relative;

    .maxButton {
      position: absolute;
      top: 0;
      right: 0;
    }
  }

  .addressManagementButton {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .feeBlock {
    color: var(--withdrawal-text);
    font-size: 14px;

    .feeAmount {
      color: var(--text);
      font-size: 16px;
    }
  }
}

.contact {
  display: flex;
  gap: 10px;
  width: 100%;
  .network {
    white-space: nowrap;
  }
  .address {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
}

.savedAddress {
  display: flex;
  gap: 10px;
  > div {
    align-items: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
}

.noticeBlock {
  margin-top: 30px;
  color: var(--withdrawal-notice);

  .noticeHeading {
    font-size: 16px;
  }

  .noticeItems {
    font-size: 14px;
    padding-bottom: 10px;
  }
}

.submitButton {
  text-align: end;
  margin-top: 40px;
}
